﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using DTOAuction;
using DAOAuction;
using BUSAuction;


namespace _HTTT_HD_QuanLyGiaoDuc_WebService
{
    /// <summary>
    /// Summary description for ServiceXuLyThongTinLop
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class ServiceXuLyThongTinLop : System.Web.Services.WebService
    {
        [WebMethod]
        public List<LOP_getallwithMaKhoaResult> layDanhSachLopTheoMaKhoa(int maKhoa)
        {
            BUSLop busKhoaHoc = new BUSLop();
            return busKhoaHoc.layDanhSachLopTheoMaKhoa(maKhoa);
        }

        [WebMethod]
        public int update_PhanCongGiaoVien(int maLop, int maGiaoVien)
        {
            BUSLop lop = new BUSLop();
            return lop.update_PhanCongGiaoVien(maLop, maGiaoVien);
        }

        [WebMethod]
        public int update_sapxepThoiKhoaBieu(int maLop, string ngay, int bd, int kt)
        {
            BUSLop lop = new BUSLop();
            return lop.update_sapxepThoiKhoaBieu(maLop, ngay, bd, kt);
        }

        [WebMethod]
        public List<LOP_LayDanhSachLopHocChuaCoPhongResult> LayDanhSachLopChuaCoPhong()
        {
            BUSLop busLop = new BUSLop();
            return busLop.LayDanhSachLopChuaCoPhong();
        }

        [WebMethod]
        public int CapNhatPhongVaoLopHoc(int MaLop, int MaPhong)
        {
            BUSLop busLop = new BUSLop();
            return busLop.capNhatPhongVaoLopHoc(MaLop, MaPhong);
        }

        [WebMethod]
        public int themLopMoi(int maHPMo)
        {
            BUSLop BUSLop = new BUSLop();
            return BUSLop.themLopMoi(maHPMo);
        }

		/// <summary>
		/// author: hqlam
		/// </summary>
		[WebMethod]
		public bool kiemTraThongTinLopHoc(int maLop)
		{
			BUSLop BUSLop = new BUSLop();
			return BUSLop.kiemTraThongTinLopHoc(maLop);
		}

		/// <summary>
		/// author: hqlam
		/// </summary>
		[WebMethod]
		public bool capNhatThongTinLopHoc(LOP lopHoc)
		{
			BUSLop BUSLop = new BUSLop();
			return BUSLop.capNhatThongTinLopHoc(lopHoc);
		}

		/// <summary>
		/// author: hqlam
		/// </summary>
		[WebMethod]
		public LOP layThongTinLop(int maLop)
		{
			return BUSLop.layThongTinLop(maLop);
		}
    }
}
